// done
#include "car.hpp"
#include <iostream>
#include <vector>
#include <string>
#include <map>
#include <unordered_map>
using namespace std;
/**
 * @description: constr
 * @param {
 * double v, 
 * double s
 * }
 * @return {}
 * @src: car.hpp
 */
Car::Car(double v, double s):
  speed(v),
  distance(s)
{
  ;
}
/**
 * @description: get speed
 * @param {*}
 * @return {double}
 * @src: car.hpp
 */
double Car::getCurSpeed()
{
  return speed;
}
/**
 * @description: get distance
 * @param {*}
 * @return {double}
 * @src: car.hpp
 */
double Car::getCurDistance()
{
  return distance;
}
/**
 * @description: get t1
 * @param {*}
 * @return {double}
 * @src: car.hpp
 */
double Car::getCurTime_t1()
{
  return t1;
}
/**
 * @description: get td
 * @param {*}
 * @return {double}
 * @src: car.hpp
 */
double Car::getCurTime_td()
{
  return td;
}
/**
 * @description: get tg
 * @param {*}
 * @return {double}
 * @src: car.hpp
 */
double Car::getCurTime_tg()
{
  return tg;
}
/**
 * @description: get Accelerated
 * @param {*}
 * @return {double}
 * @src: car.hpp
 */
double Car::getAccelerated()
{
  return a;
}
/**
 * @description: set speed
 * @param {double}
 * @return {void}
 * @src: car.hpp
 */
void Car::setSpeed(double v)
{
  speed = v;
}
/**
 * @description: set distance
 * @param {double}
 * @return {void}
 * @src: car.hpp
 */
void Car::setDistance(double s)
{
  distance = s;
}
/**
 * @description: set t1
 * @param {double}
 * @return {void}
 * @src: car.hpp
 */
void Car::setTime_t1(double time)
{
  t1 = time;
}
/**
 * @description: set td
 * @param {double}
 * @return {void}
 * @src: car.hpp
 */
void Car::setTime_td(double time)
{
  td = time;
}
/**
 * @description: set tg
 * @param {double}
 * @return {void}
 * @src: car.hpp
 */
void Car::setTime_tg(double time)
{
  tg = time;
}
/**
 * @description: set accelerate
 * @param {double}
 * @return {void}
 * @src: car.hpp
 */
void Car::setAccelerated(double accelerate)
{
  a = accelerate;
}
